package cn.kaiux.bigdata.homework.week05_06

import java.net.URI

/**
 * @author kaiux@foxmail.com
 * @date 2022/6/11 12:53
 */
case class SingleCopyDefinition(source: FileStatusWithType, destination: URI)

case class CopyDefinitionWithDependencies(source: FileStatusWithType, destination: URI, dependentFolders: Seq[SingleCopyDefinition]) {

  def toKeyedDefinition: (URI, CopyDefinitionWithDependencies) = (destination, this)

  def getAllCopyDefinitions: Seq[SingleCopyDefinition] = dependentFolders :+ SingleCopyDefinition(source, destination)

}